Skip to content

refactor(client): 인증과 앱 셸 책임 분리 - #65

Merged
CheHyeonYeong merged 8 commits into
mainfrom
refactor/frontend-context-foundation
Sep 3, 2026
Merged

CheHyeonYeong merged 8 commits into
mainfrom
refactor/frontend-context-foundation

Conversation

@tartelettie

@tartelettie tartelettie commented Aug 27, 2026 •

Copy link
Copy Markdown
Collaborator

이 PR을 어떻게 봐야 하나 이 PR들은 리뷰를 쉽게 하려고 기능 단위로 쌓아 둔 PR입니다. 지금 GitHub 화면에서 #66/#69/#70은 main으로 바로 merge되는 PR이 아닙니다. 선행 PR 브랜치를 base로 둬서 리뷰어가 "이번 PR에서 추가로 바뀐 부분"만 작게 볼 수 있게 해 둔 상태입니다. 예를 들어 #66 화면에 이렇게 보이면 정상입니다. text refactor/todo-routine-flow → refactor/frontend-context-foundation 이 상태에서 바로 merge하면 main이 아니라 refactor/frontend-context-foundation으로 들어갑니다. 그래서 실제 main merge는 아래 순서로 합니다. text #65를 main에 merge → #66 base를 main으로 바꾼 뒤 merge → #69 base를 main으로 바꾼 뒤 merge → #70 base를 main으로 바꾼 뒤 merge 즉 리뷰할 때는 지금처럼 stacked PR로 작게 보고, merge할 때만 다음 PR의 base를 main으로 바꿔서 순서대로 넣습니다. --- ## 왜 App.tsx가 인증 상태 확인, OAuth 로그인/로그아웃, 비로그인 화면, 로그인 후 앱 레이아웃 조립까지 모두 들고 있었습니다. 이 상태에서 todo/notes/time 리팩토링을 이어가면 기능 변경과 앱 진입점 변경이 계속 섞여서 리뷰 범위가 커집니다. 이 PR은 후속 기능별 PR을 작게 만들기 위한 첫 단계로, 인증 경계와 앱 셸 경계만 분리합니다. ## 무엇을 했나 - useAuthSession으로 Supabase 세션 확인, OAuth callback 처리, Google 로그인, 로그아웃 동작을 이동했습니다.

  • web 로그인은 새 탭/팝업 대신 현재 탭에서 OAuth URL로 이동하고, callback URL의 token을 세션으로 저장하도록 했습니다. - auth hook 반환 이름을 checking/login/logout 대신 isCheckingSession/signInWithGoogle/signOut으로 명확히 했습니다. - AuthGate로 로딩/비로그인/로그인 버튼 UI를 분리했습니다. - AuthGate props를 checking/onLogin 대신 isCheckingSession/onSignIn으로 명확히 했습니다. - AppShell로 로그인 이후의 SafeArea, StatusBar, 상단 바, 탭 내비게이션, dashboard 조립을 분리했습니다. - AppShell props를 store/onLogout 대신 workspaceData/onSignOut으로 명확히 했습니다. - App.tsx는 세션 상태에 따라 AuthGate 또는 AppShell을 선택하는 진입점 역할만 하도록 줄였습니다. - AuthGate/AppShell 스타일은 각 컴포넌트의 .styles.ts로 분리했습니다. ## 어떻게 바뀌었나 - before: App.tsx가 auth effect, auth handler, 앱 레이아웃, 화면 선택을 한 파일에서 처리했습니다. - after: identity는 인증, application은 앱 셸, App.tsx는 조립만 담당합니다. - 새로 만든 auth/shell 경계에서는 의미가 넓은 store, login, logout, checking 이름을 쓰지 않습니다. - 기존 Screens.tsx 화면 계약은 이 PR에서 바꾸지 않았습니다. 화면별 명시적 props 분리는 후속 PR에서 처리합니다. - 데이터 로딩, cache, request helper, todo/notes/time/routine 동작은 이 PR에서 건드리지 않았습니다. ## 유지한 내용 - 로그인/로그아웃/OAuth callback 동작 - 기존 상단 바, 탭, dashboard UI 흐름 - 서버 API/DTO 구조 - todo/notes/time/routine 기능 동작 - 기존 CI, prettier, vitest 설정 - AGENTS.md, skills/verify 등 작업 기준 문서 ## 일부러 제외한 내용 - todo/routine/notes/time 기능별 화면 리팩토링 - 기존 Screens.tsx 내부 props 이름 정리 - workspace/cache/loading/request 소유권 변경 - 새 CI 정책, line limit, e2e/smoke test 추가 - 동작 변경성 기능 수정 ## 검증 - cd client && npm test -- --run - cd client && npm run typecheck - cd client && npm run format:check

@vercel

vercel Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
todo Ready Ready Preview Aug 29, 2026 10:13am

@tartelettie
tartelettie force-pushed the refactor/frontend-context-foundation branch from 6e71c11 to a4534ba Compare August 29, 2026 03:31
@tartelettie
tartelettie marked this pull request as ready for review August 29, 2026 08:07
@tartelettie
tartelettie force-pushed the refactor/frontend-context-foundation branch from 71af9bc to eb8f4de Compare August 29, 2026 09:21
@CheHyeonYeong

Copy link
Copy Markdown
Owner

pr 본문은 신경써주세요

@CheHyeonYeong CheHyeonYeong left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굿

@CheHyeonYeong
CheHyeonYeong merged commit 2cbe178 into main Sep 3, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — a303320e Deployed Aug 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants